From: Florian Müllner Date: Fri, 31 Jan 2014 12:46:12 +0000 (+0100) Subject: shell-app: Rename internal function as suggested in review X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2853 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2fba8e29e0b38401c8dbe2e40712e8c6eda45694;p=gnome-shell.git shell-app: Rename internal function as suggested in review Ooops, this was meant to be squashed with commit d44f40d105. --- diff --git a/src/shell-app.c b/src/shell-app.c index 3766f3363..537e355cf 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -921,7 +921,7 @@ shell_app_on_user_time_changed (MetaWindow *window, } static void -shell_app_maybe_start_stop (ShellApp *app) +shell_app_sync_running_state (ShellApp *app) { g_return_if_fail (app->running_state != NULL); @@ -939,12 +939,16 @@ shell_app_on_skip_taskbar_changed (MetaWindow *window, { g_assert (app->running_state != NULL); + /* we rely on MetaWindow:skip-taskbar only being notified + * when it actually changes; when that assumption breaks, + * we'll have to track the "interesting" windows themselves + */ if (meta_window_is_skip_taskbar (window)) app->running_state->interesting_windows--; else app->running_state->interesting_windows++; - shell_app_maybe_start_stop (app); + shell_app_sync_running_state (app); } static void @@ -1050,7 +1054,7 @@ _shell_app_add_window (ShellApp *app, if (!meta_window_is_skip_taskbar (window)) app->running_state->interesting_windows++; - shell_app_maybe_start_stop (app); + shell_app_sync_running_state (app); g_object_thaw_notify (G_OBJECT (app)); @@ -1074,7 +1078,7 @@ _shell_app_remove_window (ShellApp *app, if (!meta_window_is_skip_taskbar (window)) app->running_state->interesting_windows--; - shell_app_maybe_start_stop (app); + shell_app_sync_running_state (app); if (app->running_state && app->running_state->windows == NULL) g_clear_pointer (&app->running_state, unref_running_state);